home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000272_tom.horsley@att.net_Mon Feb 10 10:07:20 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  70 lines

  1. Article: 14066 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail
  3. Sender: tom@SPIKE
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: input pattern matching blowing my mind...
  6. References: <uisvwssje.fsf@att.net> <b213u0$i95$1@watsol.cc.columbia.edu> <u8ywrd5o8.fsf@att.net> <b26i6b$iiv$1@watsol.cc.columbia.edu> <b26i8f$il0$1@watsol.cc.columbia.edu>
  7. From: tom.horsley@att.net (Thomas A. Horsley)
  8. Message-ID: <uel6glv7y.fsf@att.net>
  9. Lines: 49
  10. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. NNTP-Posting-Host: b1e191106e3fcadfd6c50bb9b8c6e673
  14. X-Complaints-To: abuse@worldnet.att.net
  15. X-Trace: bgtnsc04-news.ops.worldnet.att.net 1044844465 b1e191106e3fcadfd6c50bb9b8c6e673 (Mon, 10 Feb 2003 02:34:25 GMT)
  16. NNTP-Posting-Date: Mon, 10 Feb 2003 02:34:25 GMT
  17. Organization: AT&T Worldnet
  18. Date: Mon, 10 Feb 2003 02:34:25 GMT
  19. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14066
  20.  
  21. : I still haven't had a chance to look at the source code, but let me just
  22. : ask if it makes a difference if you remove the braces...
  23.  
  24. I tried this:
  25.  
  26. set input case observe
  27. output ssh-add\13
  28. while 1 {
  29.    minput 10 {try again: } {\%1> } \Fpattern(Enter?passphrase?for*:?)
  30.    if failure { break }
  31.    if = \v(minput) 2 { break }
  32.    askq /GUI \%p \v(inmatch)
  33.    output \%p\13
  34. }
  35.  
  36. And it doesn't work (never seems to match, times out). I also tried this:
  37.  
  38. set input case observe
  39. output ssh-add\13
  40. while 1 {
  41.    minput 10 {try again: } {\%1> } \Fpattern(Enter passphrase for*:?)
  42.    if failure { break }
  43.    if = \v(minput) 2 { break }
  44.    askq /GUI \%p \v(inmatch)
  45.    output \%p\13
  46. }
  47.  
  48. And it does match something, unfortunately it matches the "Enter"
  49. and then the "passphrase" (but curiously, not the for*:?) so I
  50. get two separate prompts.
  51.  
  52. Also tried this variation:
  53.  
  54. set input case observe
  55. output ssh-add\13
  56. while 1 {
  57.    minput 10 {try again: } {\%1> } {\Fpattern(Enter passphrase for*:?)}
  58.    if failure { break }
  59.    if = \v(minput) 2 { break }
  60.    askq /GUI \%p \v(inmatch)
  61.    output \%p\13
  62. }
  63.  
  64. And it never matches, but times out. Whatever is going on seems fun if
  65. nothing else :-).
  66. --
  67. >>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
  68.       email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL      |
  69. <URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+
  70.